import { requestType } from '~/config/enum.config'

const SERVICE = 'domain-service'
const CONTROLLER = 'userTagController'
const CONTROLLER1 = 'caseTagAdjustApplyController'
const CONTROLLER2 = 'personalTagAdjustApplyController'
const CONTROLLER3 = 'caseAdjustTypeController'
const CONTROLLER4 = 'caseTagTypeApplyController'

export default {
  /**
   * 获取所有公司
   */
  addTag: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'addTag',
    type: requestType.Post
  },
  /**
   * 查询
   */
  findAllTags: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'findAllTags',
    type: requestType.Get
  },
  /**
   * 修改
   */
  modifyTag: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'modifyTag',
    type: requestType.Put
  },
  /**
   * 停用/启用
   */
  updateStatus: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'updateStatus',
    type: requestType.Put
  },
  /**
   * 查询有效标签
   */
  getEffectTags: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getEffectTags',
    type: requestType.Get
  },
  /**
   * 账户标签查询
   */
  findAllCaseTags: {
    service: SERVICE,
    controller: CONTROLLER1,
    action: 'findAllCaseTags',
    type: requestType.Get
  },
  /**
   * 客户标签查询
   */
  findAllPersonalTags: {
    service: SERVICE,
    controller: CONTROLLER2,
    action: 'findAllPersonalTags',
    type: requestType.Get
  },
  /**
   * 账户标签调整查询
   */
  findAllCaseTagAdjustApply: {
    service: SERVICE,
    controller: CONTROLLER1,
    action: 'findAllCaseTagAdjustApply',
    type: requestType.Get
  },
  /**
   * 案件调整类型设置查询
   */
  findAllTypes: {
    service: SERVICE,
    controller: CONTROLLER3,
    action: 'findAllTypes',
    type: requestType.Get
  },

  /**
   * 添加调整类型
   */
  addAdjustType: {
    service: SERVICE,
    controller: CONTROLLER3,
    action: 'addAdjustType',
    type: requestType.Post
  },
  /**
   * 编辑调整类型
   */
  modifyAdjustType: {
    service: SERVICE,
    controller: CONTROLLER3,
    action: 'modifyAdjustType',
    type: requestType.Put
  },
  /**
   * 案件类型调整停用
   */
  caseUpdateStatus: {
    service: SERVICE,
    controller: CONTROLLER3,
    action: 'updateStatus',
    type: requestType.Put
  },
  /**
   * 案件类型调整日志详情
   */
  findCaseAdjustTypeLogs: {
    service: SERVICE,
    controller: CONTROLLER3,
    action: 'findCaseAdjustTypeLogs',
    type: requestType.Get
  },
  /**
   * 案件类型审批
   */
  getApplyById: {
    service: SERVICE,
    controller: CONTROLLER3,
    action: 'getApplyById',
    type: requestType.Get
  },
  /**
   * 案件类型调整查询
   */
  findAllApply: {
    service: SERVICE,
    controller: CONTROLLER4,
    action: 'findAllApply',
    type: requestType.Get
  },

  /**
   * 客户标签调整查询
   */
  findAllPersonalTagAdjustApply: {
    service: SERVICE,
    controller: CONTROLLER2,
    action: 'findAllPersonalTagAdjustApply',
    type: requestType.Get
  },
  /**
   * 
   * 根据账户号获取客户信息
   */
  getPersonalInfo: {
    service: SERVICE,
    controller: CONTROLLER4,
    action: 'getPersonalInfo',
    type: requestType.Get
  },

  /**
   * 查询所有生效的案件调整类型
   */
  getEffectTypes: {
    service: SERVICE,
    controller: CONTROLLER3,
    action: 'getEffectTypes',
    type: requestType.Get
  },

  /**
   * 案件类型单笔调整提交
   */
  singleAdjustment: {
    service: SERVICE,
    controller: CONTROLLER4,
    action: 'singleAdjustment',
    type: requestType.Post
  },

  /**
   * 根据客户id获取客户标签
   */
  getPersonalTags: {
    service: SERVICE,
    controller: CONTROLLER2,
    action: 'getPersonalTags',
    type: requestType.Get
  },

  /**
   * 客户标签单笔调整
   */
  personalSingleAdjustment: {
    service: SERVICE,
    controller: CONTROLLER2,
    action: 'singleAdjustment',
    type: requestType.Post
  },
  /**
   * 账户标签单笔调整
   */
  caseSingleAdjustment: {
    service: SERVICE,
    controller: CONTROLLER1,
    action: 'singleAdjustment',
    type: requestType.Post
  },
  /**
   * 根据账户号获取标签
   */
  getCaseTags: {
    service: SERVICE,
    controller: CONTROLLER1,
    action: 'getCaseTags',
    type: requestType.Get
  },

  /**
   * 账户标签下载
   */
  downloadCaseTemplate: {
    service: SERVICE,
    controller: CONTROLLER1,
    action: 'downloadCaseTemplate',
    type: requestType.Get
  },

  downloadPersonalTemplate: {
    service: SERVICE,
    controller: CONTROLLER2,
    action: 'downloadPersonalTemplate',
    type: requestType.Get
  },
  /**
   * 账户标签批量调整
   */
  caseTagBatchAdjust: {
    service: SERVICE,
    controller: CONTROLLER1,
    action: 'caseTagBatchAdjust',
    type: requestType.Get
  },
  /**
   * 客户标签批量调整
   */
  personalTagBatchAdjust: {
    service: SERVICE,
    controller: CONTROLLER2,
    action: 'personalTagBatchAdjust',
    type: requestType.Get
  },
  /**
   * 标签日志查询
   */
  findAllTagLogs: {
    service: SERVICE,
    controller: 'tagLogController',
    action: 'findAllTagLogs',
    type: requestType.Get
  },
  /**
   * 标签审批记录
   */
  getTagApplyByTagId: {
    service: SERVICE,
    controller: 'userTagController',
    action: 'getTagApplyByTagId',
    type: requestType.Get
  },

  getTagCaseApplyRecordHistory: {
    service: SERVICE,
    controller: 'userTagController',
    action: 'getTagCaseApplyRecordHistory',
    type: requestType.Get
  }
}
